#include "QuickSort.h"
#include <stdio.h>
#include <iostream>

using namespace std;

void PrintArray(int* data, int size)
{
	for (int i = 0; i < size; i++)
	{
		printf("%d ", data[i]);
	}
}


void TestQuickSort()
{
	//int a[] = { 3, 2, 6, 8, 4, 6, 0, 9, 5, 7, 1 };
	int a[] = { 6,1,2,7,9,3,4,5,10,8 };
	//int a[] = { 6,1,2,6,7,9,3,4,6,10,8 };


	PrintArray(a, sizeof(a) / sizeof(int));

	cout << endl;

	QuickSort(a, 0, sizeof(a) / sizeof(int) - 1);

	PrintArray(a, sizeof(a) / sizeof(int));
}


int main()
{
	TestQuickSort();
	return 0;
}